/**
 * 
 */
package fx.parser;

/**
 * @author sajia
 *
 */
public class OrExpression extends BinaryBooleanExpression {
	public OrExpression(final BooleanExpression left, final BooleanExpression right) {
		super(left, right);
	}
	
	@Override
	protected void matchesWith(final String input, final MatchResult result) {
		this.getLeft().matchesWith(input, result);
		if (result.isDoneMatching() || result.isMatched()) return;
		this.getRight().matchesWith(input, result);
	}
}
